package com.ewzj.bigdata.mvp.ui.adapter;

import android.view.View;

import com.ewzj.bigdata.R;
import com.ewzj.bigdata.mvp.model.entity.resbean.SearchResultHot;
import com.ewzj.bigdata.mvp.ui.holder.SearchResuHotltItemHolder;
import com.jess.arms.base.BaseHolder;
import com.jess.arms.base.DefaultAdapter;

import java.util.List;

/**
 * Created by just__soso on 2018/1/31.
 */

public class SearchResultHotAdapter extends DefaultAdapter<SearchResultHot> {
    public SearchResultHotAdapter(List<SearchResultHot> results)
    {
        super(results);
    }
    @Override
    public BaseHolder<SearchResultHot> getHolder(View v, int viewType) {

        return new SearchResuHotltItemHolder(v);
    }

    @Override
    public int getLayoutId(int viewType) {
        return R.layout.search_result_item;
    }

    @Override
    public List<SearchResultHot> getInfos() {
        return super.getInfos();
    }
}
